<%@ Page Language="c#" CodeBehind="ViewSource.aspx.cs" AutoEventWireup="True" Inherits="FormsGenerator.ViewSource"
    ValidateRequest="false" CodePage="65001" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title>ViewSource</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="Styles/Default.css" type="text/css" rel="stylesheet" />

    <script language="javascript" type="text/javascript">
		function updateForm(parGUID, parCloseWindow)
		{
			window.opener.location = "EditForm.aspx?ID=" + parGUID;
			if (parCloseWindow)
			{
				window.close();
			}
		}
    </script>

</head>
<body>
    <form id="ViewSource" method="post" runat="server">
    <asp:Label ID="LabelErrorMessage" runat="server" ForeColor="Red" Visible="False"
        CssClass="ErrorMessage" EnableViewState="False"></asp:Label>
    <table width="100%" height="100%">
        <tr>
            <td height="50">
                Form name:
                <asp:Label ID="LabelFormName" runat="server" EnableViewState="False"></asp:Label>
            </td>
            <td align="right">
                <asp:Button ID="ButtonUpdate" runat="server" Text="Update Form" OnClick="ButtonUpdate_Click">
                </asp:Button><asp:Button ID="ButtonUpdateAndClose" runat="server" Text="Update And Close"
                    OnClick="ButtonUpdateAndClose_Click"></asp:Button>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:TextBox ID="TextBoxCode" runat="server" CssClass="TextAreaCode" Rows="20" Width="100%"
                    TextMode="MultiLine" Height="100%"></asp:TextBox><br />
            </td>
        </tr>
    </table>
    <asp:Label ID="LabelExecuteJavascript" runat="server" Visible="False" EnableViewState="False"></asp:Label><br />
    <asp:Label ID="LabelDebug" runat="server" EnableViewState="False"></asp:Label></form>
</body>
</html>
